<template>
  <div  v-title :data-title="dataTitle?dataTitle:'基建现场管理单编辑'">
    <InfrastructureDetail ref="InfrastructureDetailBox"/>
  </div>
</template>

<script>
import InfrastructureDetail from '@/views/workReport/infrastructure/InfrastructureDetail'
export default {
  components: {
    InfrastructureDetail,
  },
  data() {
    return {
      dataTitle:this.$route?this.$route.name:"",
      id: this.$route.params && this.$route.params.id,
    }
  },
  mounted(){
    if(this.id){
      this.$refs.InfrastructureDetailBox.fetchInfrastructure(this.id)
    }
  }
}
</script>